package com.ruoyi.mhrb.custom.model;

import com.alibaba.fastjson2.annotation.JSONField;

public class PayResult {
    private Integer code;
    private String message;
    @JSONField(name = "trade_no")
    private String orderNum;

    private String payurl;
    private String qrcode;
    private String urlscheme;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getPayurl() {
        return payurl;
    }

    public void setPayurl(String payurl) {
        this.payurl = payurl;
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

    public String getUrlscheme() {
        return urlscheme;
    }

    public void setUrlscheme(String urlscheme) {
        this.urlscheme = urlscheme;
    }

    @Override
    public String toString() {
        return "PayResult{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", payurl='" + payurl + '\'' +
                ", qrcode='" + qrcode + '\'' +
                ", urlscheme='" + urlscheme + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PayResult payResult = (PayResult) o;
        return code.equals(payResult.code) && message.equals(payResult.message) && orderNum.equals(payResult.orderNum) && payurl.equals(payResult.payurl) && qrcode.equals(payResult.qrcode) && urlscheme.equals(payResult.urlscheme);
    }

    @Override
    public int hashCode() {
        int result = code.hashCode();
        result = 31 * result + message.hashCode();
        result = 31 * result + orderNum.hashCode();
        result = 31 * result + payurl.hashCode();
        result = 31 * result + qrcode.hashCode();
        result = 31 * result + urlscheme.hashCode();
        return result;
    }
}
